#include <iostream>
#include "dish.h"
#include "shop.h"
using namespace std;

int main()
{
    Shop shop(4);
    shop.append(Dish("白菜", 200, 1.2, 1.5));
    shop.append(Dish("萝卜", 300, 1.8, 2.2));
    shop.append(Dish("鱼", 40, 7.8, 9.2));
    shop.append(Dish("虾", 10, 30.5, 45));
    shop.display();

    cout << "总营业额: " << shop.sumOfBusiness() << endl;
    cout << "利润最高: " << shop.largestProfit() << endl;
    cout << "销量最高: " << shop.largestSales() << endl;

    shop.sort();
    shop.display();
    return 0;
}